package com.example.item;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "导航菜单")
public class Navmenu {
    @Schema(description = "导航菜单编号")
    @TableId(type = IdType.AUTO)
    private Integer navId;
    @Schema(description = "导航菜单名称")
    private String navName;
    @Schema(description = "导航菜单路径")
    private String navPath;
    @Schema(description = "子导航菜单")
    private String childrenNav;
    @Schema(description = "显示状态（0：显示，1：隐藏）")
    private Integer navVisible;
    @Schema(description = "导航菜单授权")
    private String navPerms;
    @Schema(description = "导航菜单类型（0：目录   1：菜单  2：按钮）")
    private String navType;
    @Schema(description = "导航菜单状态（0：正常，1：停用）")
    private Integer navStatus;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer navIsdelete;
}
